home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.6 KB | 51 lines | [TEXT/GEOL] |
- Item forwarded by HIETA1 to LORD2
-
- Item forwarded by BROSNAHAN.R to VONEGGER.L
-
- Item forwarded by LEFFLER1 to GBOND
-
- Item forwarded by FRED.FORSMAN to HIETA1
-
- Item 8101651 31-Oct-90 16:42PST
-
- From: D4682 Marx, Peter,PRT
-
- To: MACDTS Macintosh Developer Tech Supt
- MACAPP.TECH$ MacApp Technical
- CPLUS.DEV$ C++ Interest List--Developers
- CPLUS.APPLE$ C++ Interest List--Apple Employees
- GRETSCH Gretsch, Greg
-
- Sub: Undigestible C Headers
-
- Dear Folks:
-
- The SoundInput.h header file for System 6.06/6.07 does not work terribly well
- with C++ under MPW 3.1 or 3.2b1. Take a declaration such as:
-
- #define a (256*3)+20
- pascal void SuchAProc(void something) = {0x203C,a,20,0xA800};
-
- This just does not fly with C++. The compiler garfs on the initialization of a
- procedure (or scalar) with "defined" constants. It won't handle assignments
- such as this, either:
-
- const short int a = 20 ;
- Point aPt = {a, 0} ;
-
- Perhaps you should consider these things when designing and releasing the
- header files.
-
- While we're on the subject, could you also stay away from C++ or MPW C-specific
- features such as the "//" comment operator. It wrecks havoc upon older
- compilers such as Think C 4.03. I have seen quite a number of programmer's
- curse the header's that make heavy use of such things, including Sound.h and
- SoundInput.h.
-
- Thanks in advance,
-
-
- Peter Marx
- UCLA Dept. of Medicine
-
-